package com.dragon.linkedlist;

/**
 * @author dragon
 * @version 1.0
 * @description
 * @date created in 2018-12-17
 */
public class DummyHeadLinkedListTest {

    public static void main(String[] args) {
        DummyHeadLinkedList<Integer> linkedList = new DummyHeadLinkedList<>();
        for (int i = 0; i < 10; i++) {
            linkedList.addLast(i);
            System.out.println(linkedList.toString());
        }
        System.out.println(linkedList);
        System.out.println("删除的元素:" + linkedList.remove(0));
        linkedList.set(0, 11);
        System.out.println(linkedList);
    }
}
